import Vue from 'vue'
import Router from 'vue-router'
import { PublicRouter } from './public'
Vue.use(Router)
PublicRouter(Router)

export default new Router({
	mode: 'history',
	base: process.env.BASE_URL,
	routes: [
		{
			path: '/',
			redirect: '/home',
		},
		{
			path: '/home',
			component: () => import('@views/home'),
		},
		{
			path: '/home/details/:id',
			component: () => import('@views/home/details'),
			meta: {
				tabbar : false,
			}
		},
		{
			path: '/about',
			component: () => import('@views/about'),
		},
		{
			path: '/more',
			component: () => import('@views/more'),
		},
		{
			path: '/more/swiper',
			component: () => import('@views/more/swiper'),
			meta: {
				tabbar : false,
			}
		},
	]
})
